#!/usr/bin/env node
let fs = require('fs');
let {walk} =require("./Util") ;
let {check} =require("./check") ;
const config=require("./config.json")
const process = require('process');


console.log(config)
let rootPath=process.cwd()
console.log("开始检查"+rootPath)

walk(rootPath,config, function(filePath) {
   check(filePath)
});